package edu.scau.mis.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云oss对象存储配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss")
public class OssConfig {

    /**
     * Bucket 域名
     */
    private String urlPrefix;

    /**
     * 地域节点
     */
    private String endPoint;

    /**
     * accessKey Id
     */
    private String keyId;

    /**
     * accessKey Secret
     */
    private String keySecret;

    /**
     * Bucket名称
     */
    private String bucketName;

    /**
     * 目标文件夹
     */
    private String fileHost;

}
